package com.second.teacher.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.second.common.pojo.Teacher;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * @program: second-education-parent
 * @description:
 * @author: 王子朋
 * @create: 2023-05-26 18:52
 **/

public interface TeacherDao extends BaseMapper<Teacher> {
    @Update(value = "UPDATE edu_teacher e , t_order t SET t.teacher_name = e.`name` WHERE edu_teacher.`name`=#{name}")
    void updateTeacher(Teacher teacher);
    Page<Teacher> findCheckTeacher(Page<Teacher> page,@Param("ew") QueryWrapper<Teacher> wrapper);
    int updateshenhe(Teacher teacher);
}
